package com.server.admin.controller;

import com.server.common.api.ApiResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zgr
 * @date 2023/7/7 14:15
 * @description
 */
@RestController
@RequestMapping(value = "/home")
@Api(value = "HomeController", tags = "首页")
public class HomeController {

    @GetMapping("/hi")
    @ApiOperation(value = "首页")
    public ApiResult getHi() {
        return ApiResult.success("hi~");
    }

    @GetMapping("/index")
    @ApiOperation(value = "首页")
    public ApiResult getIndex() {
        return ApiResult.success("hi~，这是首页");
    }

}
